from django.db import models

# Create your models here.


class Person(models.Model):
    p_name = models.CharField(max_length=16)


class Identity(models.Model):
    i_num = models.CharField(max_length=16, unique=True)
    i_person = models.OneToOneField(Person, on_delete=models.PROTECT)